home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
cmp.z
/
cmp
Wrap
Text File
|
1998-10-20
|
2KB
|
67 lines
ccccmmmmpppp((((1111)))) ccccmmmmpppp((((1111))))
NNNNAAAAMMMMEEEE
_cccc_mmmm_pppp - compare two files
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
_cccc_mmmm_pppp [ _----_llll ] [ _----_ssss ] _f_i_l_e_1 _f_i_l_e_2 [ _s_k_i_p_1 ] [ _s_k_i_p_2 ]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The two files are compared. (If _f_i_l_e_1 is _----, the standard input is used.)
Under default options, _cccc_mmmm_pppp makes no comment if the files are the same; if
they differ, it announces the byte and line number at which the
difference occurred. If one file is an initial subsequence of the other,
that fact is noted. _s_k_i_p_1 and _s_k_i_p_2 are initial byte offsets into _f_i_l_e_1
and _f_i_l_e_2 respectively, and may be either octal or decimal; a leading _0000
denotes octal.
Options:
_----_llll Print the byte number (decimal) and the differing bytes (octal) for
each difference.
_----_ssss Print nothing for differing files; return codes only.
FFFFIIIILLLLEEEESSSS
_////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_cccc_oooo_rrrr_eeee_...._aaaa_bbbb_iiii
language-specific message file (See _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5).)
SSSSEEEEEEEE AAAALLLLSSSSOOOO
comm(1), diff(1).
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
Exit code _0000 is returned for identical files, _1111 for different files, and _2222
for an inaccessible or missing argument.
PPPPaaaaggggeeee 1111